//
//  AISetVipGetCell.m
//  Mia
//
//  Created by Vill on 2024/1/13.
//

#import "AISetVipGetCell.h"

@interface AISetVipGetCell ()

@property (weak, nonatomic) IBOutlet UIView *bgContain;

@property (weak, nonatomic) IBOutlet UIButton *vipGetBtn;

@end

@implementation AISetVipGetCell

+(instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *ID = @"AISetVipGetCell";
    AISetVipGetCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if(cell == nil){
       cell = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil].lastObject;
    }
    return cell;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.bgContain.layer.cornerRadius = PTW(27);
    self.bgContain.layer.masksToBounds = YES;
    
    self.vipGetBtn.titleLabel.font = [UIFont fontWithWeight:MTBold size:PTW(15)];
    self.vipGetBtn.backgroundColor = [UIColor colorHex:@"#EFEFEF"];
    self.vipGetBtn.layer.cornerRadius = PTW(38)/2;
    self.vipGetBtn.layer.shadowColor = [UIColor colorHex:@"#FFFFFF" alpha:0.68].CGColor;
    self.vipGetBtn.layer.shadowOffset = CGSizeMake(0,0);
    self.vipGetBtn.layer.shadowOpacity = 1;
    self.vipGetBtn.layer.shadowRadius = 20;
    self.vipGetBtn.userInteractionEnabled = NO;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}

@end
